
    <script charset="utf-8" src="@{'/public/javascripts/edit_tools/kindeditor-4.0.1/kindeditor-min.js'}"></script>
    <script charset="utf-8" src="@{'/public/javascripts/edit_tools/kindeditor-4.0.1/lang/zh_CN.js'}"></script>
    <link type="text/css" rel="stylesheet" href="@{'/public/indexFile/css/index.css'}" charset="utf-8"/>
	<script type="text/javascript">
		var editor;
		KindEditor.ready(function(K) {
			editor = K.create('textarea[id="empDet"]', {
				resizeType : 2,
				allowPreviewEmoticons : false,
				allowImageUpload : false,
				items : [
					'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
					'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
					'insertunorderedlist', '|', 'emoticons', 'image', 'link','table','map','|','source','fullscreen' ]
			});
		});
		function editor_add_html(txt){
			// 取得HTML内容
			var htmlX = editor.html();
			// 设置HTML内容
			//editor.html( htmlX + "<br>" + txt );
			//将指定的HTML内容添加到编辑区域的最后位置。
			//editor.appendHtml(txt);
			//插入内容
			editor.insertHtml(txt);
		}
	</script>

<div style="margin:10px auto;width:500px;">
	<form action="@{create()}" method="post">
				       #{if flash.success}
						<p><font color="red">${flash.success}</font></p>
				       #{/if}
	                   <div class="m2_b_c1">
					    	<div class="m2c_a">标题：</div>
					        <div class="m2c_b"><input type="text" name="employment.empTit"/></div>
					    </div>
	                   <p style="margin-left:45px; color:#666666;">信息详情：</p>
	                   <p style="margin-left:45px; color:#666666;">
	                      <textarea rows="10" cols="70" name="employment.empDet" id="empDet"></textarea> 
	                   </p>
	                   <p style="margin-left:600px;">
	                     <input type="submit" value="添加">
	                   </p>
	</form>
	<p style="margin-left:40px;"><a href="/controllers/EmploymentAction.list">返回</a></p>
</div>